#include <iostream>
#include <array>
#include <string>
const int Seasons =4;
const std::array<std::string,Seasons> Snames = {"Spring","Summer","Fall","Winter"};
void fill(std::array<double,Seasons> * pa);
void show(std::array<double,Seasons> da);
int main(int argc, char const *argv[])
{
	std::array<double,Seasons>expense;
	fill($expense);
	show(expense);
	return 0;
}
void fill(std::array<double,Seasons> * pa){
	using namespace std;
	for (int i = 0; i < Seasons; ++i)
	{
		cout <<"Enter"<<Seasons[i]<<"Expense:";
		cin>>(*pa)[i];
	}
}
void show(std::array<double,Seasons> da){
	using namespace std;
	double total =0.0;
	cout << "\nEXPNESES\n";
	for (int i = 0; i < Seasons; ++i)
	{
		cout << Snames[i] <<": $"<<da[i]<<endl;
		total = +=da[i];
	}
cout << "Total Expense :" << total << endl;
}
